cmake_minimum_required(VERSION 2.6)

project(shiokaze-panel)

include_directories(include)
include_directories(.)
include_directories(${CMAKE_CURRENT_BINARY_DIR})

qt4_wrap_cpp(MOC_SOURCES include/IconWidget.hh
						 include/PanelWidget.hh)

add_library(shio SHARED source/NetWM.cc
						source/IconWidget.cc
						source/PanelWidget.cc
						source/PanelWidget_setGeometry.cc
						source/Desktop.cc
						source/FileUtils.cc
						${MOC_SOURCES})
target_link_libraries(shio X11 ${QT_LIBRARIES})

INSTALL(TARGETS shio
  RUNTIME DESTINATION bin
  LIBRARY DESTINATION lib
  ARCHIVE DESTINATION lib
)
